package com.zhentao.Result;

import lombok.Data;

@Data
public class ResultVo {
    private Integer code;
    private String msg;
    private Object data;

    public static ResultVo suess(String msg,Object data){
        ResultVo result=new ResultVo();
        result.setData(data);
        result.setCode(200);
        result.setMsg(msg);
        return result;
    }
    public static ResultVo error(String msg,Object data){
        ResultVo result=new ResultVo();
        result.setData(data);
        result.setCode(1002);
        result.setMsg(msg);
        return result;
    }
}
